package com.osi.project.redis.generate.pojo;

import com.osi.start.common.business.dto.BaseDO;
import javax.persistence.*;
import java.time.*;

 import java.lang.Long;
 import java.lang.String;
 import java.util.Date;

/**
 * @Desc  redis慢sql日志,表对应的实体对象
 * @author pwh
 * @date 2018年01月01日 09:09:09
 * @Copyright (c) onestop
 */
@Table(name = "redis_slow_log")
public class RedisSlowLogDO extends BaseDO {
	
	private static final long serialVersionUID = 1L;
	
    /**
     * 主键
     */
    @Id
    @Column(name = "id")     
	protected Long id;
	
    /**
     * 
     */
    @Column(name = "log_id")     
	protected Long logId;
	
    /**
     * 执行的时间戳
     */
    @Column(name = "start_time")     
	protected Date startTime;
	
    /**
     * 执行耗时，微秒
     */
    @Column(name = "duration")     
	protected Long duration;
	
    /**
     * 执行参数
     */
    @Column(name = "params")     
	protected String params;
	
    /**
     * 参数md5值
     */
    @Column(name = "params_md5")     
	protected String paramsMd5;
	
    /**
     * 备注
     */
    @Column(name = "remark")     
	protected String remark;
	
    /**
     * 创建时间
     */
    @Column(name = "create_time")     
	protected Date createTime;
	


	public void setId(Long id){
	  	this.id = id;
	}
	
	public Long getId(){
		return id;
	}
	
	public void setLogId(Long logId){
	  	this.logId = logId;
	}
	
	public Long getLogId(){
		return logId;
	}
	
	public void setStartTime(Date startTime){
	  	this.startTime = startTime;
	}
	
	public Date getStartTime(){
		return startTime;
	}
	
	public void setDuration(Long duration){
	  	this.duration = duration;
	}
	
	public Long getDuration(){
		return duration;
	}
	
	public void setParams(String params){
	  	this.params = params == null ? null : params.trim();
	}
	
	public String getParams(){
		return params;
	}
	
	public void setParamsMd5(String paramsMd5){
	  	this.paramsMd5 = paramsMd5 == null ? null : paramsMd5.trim();
	}
	
	public String getParamsMd5(){
		return paramsMd5;
	}
	
	public void setRemark(String remark){
	  	this.remark = remark == null ? null : remark.trim();
	}
	
	public String getRemark(){
		return remark;
	}
	
	public void setCreateTime(Date createTime){
	  	this.createTime = createTime;
	}
	
	public Date getCreateTime(){
		return createTime;
	}
	

	/**
	 * 实体对象的属性字段
	 */
	public enum Property{
    /**
     * 主键
     */
	id,
    /**
     * 
     */
	logId,
    /**
     * 执行的时间戳
     */
	startTime,
    /**
     * 执行耗时，微秒
     */
	duration,
    /**
     * 执行参数
     */
	params,
    /**
     * 参数md5值
     */
	paramsMd5,
    /**
     * 备注
     */
	remark,
    /**
     * 创建时间
     */
	createTime,
	;
	}
}

